/*
 * Created by JFormDesigner on Mon Jul 07 11:18:47 CST 2014
 */

package com.adcc.swingui.demo.dialog;

import java.awt.*;

import javax.swing.*;
import com.adcc.swingui.base.*;

/**
 * @author charlie
 */
public class SaveDialog extends DefaultDialog {
	private static final long serialVersionUID = 1L;
	public SaveDialog(Frame owner) {
		super(owner);
		initComponents();
	}

	public SaveDialog(Dialog owner) {
		super(owner);
		initComponents();
	}
	public SaveDialog(Container container) {
		super(container);
		initComponents();
	}
	private void initComponents() {
		// JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
		panel1 = new JPanel();
		labNumber = new JLabel();
		textField1 = new JTextField();
		button1 = new JButton();

		//======== this ========
		setTitle("\u4fdd\u5b58");
		setMinimumSize(new Dimension(400, 500));
		setModal(true);
		Container contentPane = getContentPane();
		contentPane.setLayout(new BorderLayout());

		//======== panel1 ========
		{
			panel1.setLayout(new FlowLayout());

			//---- labNumber ----
			labNumber.setText("\u53c2\u6570");
			panel1.add(labNumber);

			//---- textField1 ----
			textField1.setPreferredSize(new Dimension(40, 21));
			panel1.add(textField1);

			//---- button1 ----
			button1.setText("\u4fdd\u5b58");
			panel1.add(button1);
		}
		contentPane.add(panel1, BorderLayout.NORTH);
		pack();
		setLocationRelativeTo(getOwner());
		// JFormDesigner - End of component initialization  //GEN-END:initComponents
	}

	// JFormDesigner - Variables declaration - DO NOT MODIFY  //GEN-BEGIN:variables
	private JPanel panel1;
	private JLabel labNumber;
	private JTextField textField1;
	private JButton button1;
	// JFormDesigner - End of variables declaration  //GEN-END:variables
	@Override
	public void i18n() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void init(Object... obj) {
		this.textField1.setText("2");
		this.setVisible(true);
	}
}
